/*
 * @Author: your name
 * @Date: 2020-10-19 08:55:46
 * @LastEditTime: 2021-01-05 14:28:57
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \sende_nuxt\plugins\elementUI.js
 */
import Vue from 'vue'
// import ElementUI from 'element-ui'
// Vue.use(ElementUI)
import '../assets/scss/element-variables.scss';
import locale from 'element-ui/lib/locale/lang/en'
import { 
    Button, 
    Select,
    Option,
    Dialog, 
    Form,
    FormItem,
    Rate,
    Input,
    Radio,
    RadioGroup,
    Breadcrumb,
    BreadcrumbItem,
    Checkbox,
    CheckboxGroup,
    TabPane,
    Tabs,
    Table,
    TableColumn,
    InputNumber,
    Alert,
    Message,
    Col,
    Collapse,
    CollapseItem
} from 'element-ui';
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
const components = [
    Button, 
    Select,
    Option,
    Dialog, 
    Form,
    FormItem,
    Rate,
    Input,
    Radio,
    RadioGroup,
    Breadcrumb,
    BreadcrumbItem,
    Checkbox,
    CheckboxGroup,
    TabPane,
    Tabs,
    Table,
    TableColumn,
    InputNumber,
    Alert,
    Col,
    Collapse,
    CollapseItem,
    CollapseTransition
  ];

const Element = {
    install (Vue) {
        components.forEach(component => {
        Vue.component(component.name, component)
        })
    }
}
Vue.prototype.$message = Message;
Vue.use(Element, { locale });